<%@ page language="java" pageEncoding="UTF-8"%>
<%@ taglib uri="/struts-tags" prefix="s"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
<head>
<title>userList.jsp</title>
<style type="text/css">
ul {
	list-style: none;
}

li {
	float: left;
}
</style>
</head>

<body>

	<div id="users">
		<s:iterator value="#session.users" var="u" status="st">
			<s:if test="#st.index==0">
				<ul>
					<li>编号</li>
					<li>&nbsp</li>
					<li>用户名</li>
					<li>&nbsp</li>
					<li>密码</li>
					<li>&nbsp</li>
					<li>操作</li>
					<li>&nbsp</li>
					<li><a
						href='<s:url action="editUser"><s:param name="id" value="id"/></s:url>'>修改</a>
					</li>;
					<li>&nbsp</li>
					<li><a onclick=" confirm('确定要删除吗？');"
						href='<s:url action="delUserAction"><s:param name="id" value="id"/></s:url>'>删除</a>
					</li>
				</ul>
			</s:if>
			<ul style="list-style: none;">
				<li><s:property value="#u.id" /></li>
				<li>&nbsp</li>
				<li><s:property value="#u.name" /></li>
				<li>&nbsp</li>
				<li><s:property value="#u.sex" /></li>
				<li>&nbsp</li>
				<li><s:property value="#u.birth" /></li>
				<li>&nbsp</li>
				<li><a
					href='<s:url action="editUser"><s:param name="id" value="id"/></s:url>'>修改</a>
				</li>
				<li>&nbsp</li>
				<li><a onclick=" confirm('确定要删除吗？');"
					href='<s:url action="delUserAction"><s:param name="id" value="id"/></s:url>'>删除</a>
				</li>
			</ul>
			<br>
		</s:iterator>
	</div>
</body>
</html>


<%-- 		
<s:iterator value="users">
	<tr>
		<td>${id}</td>
		<td>${name}</td>
	</tr>
</s:iterator> 
--%>


<%-- 	    ${u.id },
			${u.birth },
			${u.sex },
			 ${u.name}    --%>

